import junit.framework.TestCase;


public class TST03 extends TestCase {
	
		public void testSetNumCommande() {
			int numCommande = 3;
			Commande a = new Commande();
			a.setNumCommande(numCommande);
			assertEquals("Numero invalide", numCommande, a.getNumCommande());
		}
	
		public void testNCnegatif(){
			int numCommande = -3;
			Commande a = new Commande();
			int oldnumCommande = a.getNumCommande();
			a.setNumCommande(numCommande);
			assertEquals("Numero invalide", oldnumCommande, a.getNumCommande());
		}
		
		public void testMontantnegatif(){
			double m = -3.14;
			Commande a = new Commande();
			double oldM = a.getMontant();
			a.setMontant(m);
			assertEquals("Montant invalide", oldM, a.getMontant());
		}
		
		public void testClient(){
			Client cl = new Client();
			Commande c = new Commande();
			Client oldCl = c.getClient();
			c.setClient(cl);
			assertEquals("Client invalide", oldCl, c.getClient());
		}

}
